package cn.wolfcode.cloud.productserver.service.impl;

import cn.wolfcode.cloud.domain.Product;
import cn.wolfcode.cloud.productserver.mapper.ProductMapper;
import cn.wolfcode.cloud.productserver.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wolfcode-lanxw
 */
@Service
public class ProductServiceImpl implements IProductService {
//    @Qualifier("ProductMapper")
    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<Product> list() {
        return productMapper.list();
    }

    @Override
    public Product get(Long id) {
        return productMapper.get(id);
    }
}
